import java.awt.BorderLayout;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class DialogDemo extends JDialog {
	
	JLabel about = new JLabel("HELLLO");
//	public DialogDemo(JFrame f,String s,boolean b) {
//		super(f,s,b);
//		this.setSize(300,200);
//		this.setVisible(true);
//		this.getContentPane().add(about,BorderLayout.CENTER);
//		
//	}
	public DialogDemo() {
		super();
		this.setSize(300,200);
		this.setVisible(true);
		this.getContentPane().add(about,BorderLayout.CENTER);
	}
	public static void main(String [] args) {
		JDialog a=new JDialog(new JFrame(),"MARK1",true);
		a.setVisible(true);
		a.setSize(300,200);
		a.getContentPane().add(new JLabel("THIS IS A LABEL1"));
		JDialog b = new JDialog();
		b.setTitle("MAKR2");
		b.setVisible(true);
		b.setSize(300,200);
		b.getContentPane().add(new JLabel("THIS IS A LABEL2"));
//		new DialogDemo(new JFrame(),"WORLD",true);
	}
	
}
